package publisherSubscriber;

import cosEventChannelAdmin.EventChannel;

public class Topic {
	private String topicName;
	private EventChannel channel;
	
	protected Topic(String topicName, EventChannel channel) {
		super();
		this.topicName = topicName;
		this.channel = channel;
	}

	public String getTopicName() {
		return topicName;
	}
	
	public void destroy(){
		channel.destroy();
	}
	
	

}
